#include <iostream>

using namespace std;

class Person {
public:
	int age;
	void operator()(int age) {
		cout << "your age is " << age << endl;
	}
	bool operator==(Person& person) {
		if (age == person.age) {
			return true;
		}
		return false;
	}
};

void test() {
	Person p{ 9 };
	Person p2{ 12 };
	p(p.age);

	cout << "p等于p2：" << (p == p2) << endl;
	p2.age = p.age;

	cout << "赋值之后 p等于p2：" << (p == p2) << endl;
}
int main() {
	test();
	return 0;
}